package com.kapcb.ruleengine.core;

import com.kapcb.ruleengine.api.Facts;
import com.kapcb.ruleengine.api.Rule;
import com.kapcb.ruleengine.api.RuleEngine;

/**
 * <a>Title: DefaultRuleEngine </a>
 * <a>Author: Kapcb <a>
 * <a>Description: DefaultRuleEngine <a>
 *
 * @author Kapcb
 * @version 1.0
 * @date 2024/8/11 10:33
 * @since 1.0
 */
public class DefaultRuleEngine implements RuleEngine {


    @Override
    public void fire(Rule rule, Facts facts) {
        if (rule == null) {
//            LOGGER.error("Rules is null! Nothing to apply");
            return;
        }
        rule.apply(facts);
    }

}
